//
//  LHNetWorkManager.h
//  LHAppUpdateManager
//
//  Created by 美食家 on 18/1/2.
//  Copyright © 2018年 不孤独的美食家. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface LHNetWorkManager : NSObject

/**
 1.开始网络请求
 
 @param url 请求地址
 @param method 请求方式，"get","post"等等
 @param success 请求成功结果回调
 @param failure 请求失败结果回调
 */
+(void)lh_startRequestWithUrl:(NSString*)url andRequestMethod:(NSString*)method andSuccess:(void(^)(NSDictionary * _Nullable data))success andFailure:(void(^)(NSError * _Nullable error))failure;

/**
 2.取消网络请求
 */
+ (void)lh_cancelRequest;
@end
NS_ASSUME_NONNULL_END

